<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\Grade;
use app\models\Department;
use app\models\Professional;
use app\models\Classes;
use yii\captcha\Captcha;


/* @var $this yii\web\View */
/* @var $model app\models\User */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="user-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'password')->passwordInput(['maxlength' => 100]) ?>

    <?= $form->field($model, 'newPassword')->passwordInput(['maxlength' => 100]) ?>

    <?= $form->field($model, 'repeatPassword')->passwordInput(['maxlength' => 100]) ?>

    <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
        'template' => '<div class="row"><div class="col-lg-4">{image}</div><div class="col-lg-8">{input}</div></div>',
    ]) ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('User', 'Submit'), ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
